package cn.zebra.dev.other.module.discountsShop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 
 *
 * @author runnable
 */
@TableName("discounts_shop")
@Getter
@Setter
public class DiscountsShopEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("优惠券编号")
    private String discountsId;

    @ApiModelProperty("优惠券额度")
    private BigDecimal amount;

    @ApiModelProperty("店铺id 0表示全店铺")
    private Long shopId;

    @ApiModelProperty("优惠券描述")
    private String describes;

    @ApiModelProperty("优惠券数量")
    private Long discountsNumb;

    @ApiModelProperty("条件类型0表示没有条件1表示等级条件2表示积分条件")
    private Integer conditionType;

    @ApiModelProperty("实际条件")
    private Long conditions;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("起始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("过期时间")
    private LocalDateTime endTime;

    @ApiModelProperty("是否删除")
    private Boolean deleteFlag;

    @ApiModelProperty("优惠券状态0禁用1启用2过期")
    private Integer discountsStatus;

    @ApiModelProperty("商品id 0表示店铺全商品")
    private Long productId;

    @ApiModelProperty("优惠券图片")
    private String discountsImg;

    @ApiModelProperty("优惠券类型1 店铺类型;2 商品类型")
    private Integer discountsType;
}
